#ifndef BUTTON_H_INCLUDED
#define BUTTON_H_INCLUDED

#include "panel.h"
#include "src/common/be_event_system.h"

class Button : public Panel
{
	public:
		Button();
		~Button();

		virtual void draw();
		virtual void click(const int& button);
		virtual void release(const int& button);
		virtual void genEvent( const int& button, const std::string& name, const cmdsettings& cmds, EventProperty_Repeat repeat, unsigned int delay );
	protected:
		std::map<unsigned int, long unsigned int> buttonlist;
		std::string eventname;
	private:
// 		vector<string> eventnames;

// 		typedef map <string, cmd*>::const_iterator cmdlist_iterator;
// 		cmdlist_iterator cmdit;

};

#endif
